/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 微信会员Entity
 * @author Real
 * @version 2017-05-19
 */
public class WxUser extends DataEntity<WxUser> {
	
	private static final long serialVersionUID = 1L;
	private String openid;		// openid
	private String unionid;		// unionid
	private String nickname;		// 微信昵称
	private Boolean subscribe;		// 是否关注
	private Long subscribeat;		// 关注时间
	private String sex;		// 性别
	private Integer sexid;		// 性别id
	private String country;		// 国家
	private String province;		// 省份
	private String city;		// 城市
	private String headimgurl;		// 头像
	private String wxid;		// 微信ID
	
	public WxUser() {
		super();
	}

	public WxUser(String id){
		super(id);
	}

	@Length(min=0, max=50, message="openid长度必须介于 0 和 50 之间")
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=0, max=50, message="unionid长度必须介于 0 和 50 之间")
	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	
	@Length(min=0, max=255, message="微信昵称长度必须介于 0 和 255 之间")
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@Length(min=0, max=1, message="是否关注长度必须介于 0 和 1 之间")
	public Boolean getSubscribe() {
		return subscribe;
	}

	public void setSubscribe(Boolean subscribe) {
		this.subscribe = subscribe;
	}
	
	public Long getSubscribeat() {
		return subscribeat;
	}

	public void setSubscribeat(Long subscribeat) {
		this.subscribeat = subscribeat;
	}
	
	@Length(min=0, max=32, message="性别长度必须介于 0 和 32 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=50, message="国家长度必须介于 0 和 50 之间")
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	
	@Length(min=0, max=50, message="省份长度必须介于 0 和 50 之间")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=50, message="城市长度必须介于 0 和 50 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=255, message="头像长度必须介于 0 和 255 之间")
	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}
	
	@Length(min=0, max=32, message="微信ID长度必须介于 0 和 32 之间")
	public String getWxid() {
		return wxid;
	}

	public void setWxid(String wxid) {
		this.wxid = wxid;
	}

	public Integer getSexid() {
		return sexid;
	}

	public void setSexid(Integer sexid) {
		this.sexid = sexid;
	}
	
}